package string_test;

public class StringSub {
    public static void main(String[] args) {
        String str = "helloworld";
        // world
        System.out.println(str.substring(5));
        // [0...5)
        // hello
        System.out.println(str.substring(0,5));
        System.out.println(str);
    }
}
